From e21355495a056488fdea98372de2754530b3c86a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Sat, 24 Oct 2009 17:09:01 +0200 Subject: [PATCH] Cast to gchar* to fix a compilation warning --- gdk-pixbuf/io-pnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c index 2f9fbaa729..f86826e678 100644 --- a/gdk-pixbuf/io-pnm.c +++ b/gdk-pixbuf/io-pnm.c @@ -242,7 +242,7 @@ pnm_read_next_value (PnmIOBuffer *inbuf, gint max_length, guint *value, GError * return PNM_SUSPEND; /* get the value */ - result = strtol (buf, &endptr, 10); + result = strtol ((gchar *)buf, &endptr, 10); if (*endptr != '\0' || result < 0 || result > G_MAXUINT) { g_set_error_literal (error, GDK_PIXBUF_ERROR, -- 2.30.2